package cn.zhou;

public class test2 {
    public static void main(String[] args) {
        int[] a = {100,50,90,60,80,70};
        int b=0;
        for (int i = 0; i < a.length; i++) {
            b=b+a[i];
        }
        System.out.println("有元素的和:"+b);
    }
}
